/* 写所有页面公共的样式 */
* {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  text-decoration: none;
}

.flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.flex-evenly {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

/* header 开始 */

.top {
  background: #333333;
  height: 40px;
  color: #ffffff;
  font-size: 12px;
}
.wrapper {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top a {
  color: #ffffff;
}
.top ul li::after {
  content: "|";
}
.top ul li:last-child::after {
  content: none;
}
.top ul li a {
  margin-right: 5px;
}
.links {
  width: 350px;
}
.login {
  width: 62px;
}

nav {
  height: 100px;
}

.logo img {
  width: 187px;
  height: 55px;
}

nav ul {
  width: 460px;
}

nav a {
  font-size: 18px;
  color: #212121;
}
nav a:hover {
  color: #e94400;
}

.toggle {
  position: relative;
}
.toggle a {
  padding-bottom: 20px;
}
.toggle:hover .sub-nav {
  display: block;
}
.sub-nav {
  background: #ffffff;
  width: 150px;
  height: 80px;
  padding: 10px 0;
  border: 1px solid#E5E5E5;
  border-radius: 2px;
  position: absolute;
  text-align: center;
  left: -58px;
  top: 47px;
  display: none;
}

.sub-nav::before {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border: 1px solid#E5E5E5;
  border-right: none;
  border-bottom: none;
  position: absolute;
  top: -6px;
  left: 70px;
  transform: rotate(45deg);
}
.sub-nav li {
  height: 40px;
  line-height: 40px;
}
.sub-nav li a {
  font-size: 16px;
}
.sub-nav li:hover {
  background: #eeeeee;
}

/* header 结束 */
